<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String bp = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

String __MANAGER = bp+"admin/";
String __SHOWMAINVIEW = __MANAGER+"showModule.do";
String __CREATEMENUBUTTON = __MANAGER+"createMenuButton.do";
%>

<!DOCTYPE html>
<html>
  <head>
    <title>SWIFT4J快速开发平台</title>
  </head>
  
<body>
	<div class="d-1">
		<h2 class="h2-ac">疾病诊断与病情评估</h2>
		<div class="d-b1">
			<form name="apprForm1" class="fs16">
				<input type="hidden" name="mgAppr.apprId" value="${mgAppr.apprId }"/>
				<input type="hidden" name="patientDoc.docId" value="${patientDoc.docId }"/>
				<div>
					<div>是否确诊为重症肌无力</div>
					<div class="pl100">
						<div>
							<label>(1)</label>
							<input type="radio" name="mgAppr.hbflag" value="0" <c:if test="${mgAppr.hbflag == 0 }"> checked="checked"</c:if> >否
							<input type="radio" name="mgAppr.hbflag" value="1" <c:if test="${mgAppr.hbflag == 1 }"> checked="checked"</c:if> >是
						</div>
						<div>
							<label>(2)起病时间：</label>
							<input type="text" name="mgAppr.qibing_day" value="${mgAppr.qibing_day }">
						</div>
						<div>
							<label>(3)确诊时间：</label>
							<input type="text" name="mgAppr.quezhen_day" value="${mgAppr.quezhen_day }">
						</div>
						<div>
							<label>(4)确诊医院：</label>
							<input type="text" name="mgAppr.quezhen_hospital" value="${mgAppr.quezhen_hospital }">
						</div>
						<div>
							<label>(5)诊断标准：</label>
							<input type="text" name="mgAppr.zhenduan_standard" value="${mgAppr.zhenduan_standard }">
						</div>
					</div>
				</div>
				<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="apprSave1()">保存</a>
			</form>
		</div>
		<div class="d-b1 pt5">
			<form name="apprForm2" onsubmit="return false;" class="fs16">
				<input type="hidden" name="mgAppr.apprId" value="${mgAppr.apprId }"/>
				<input type="hidden" name="patientDoc.docId" value="${patientDoc.docId }"/>
				<div>
					<div>病情评估</div>
					<div class="pl50">
						<div>
							<label>(1)临床类型：</label>
							<div class="pl50">
								<div>
									<input type="radio" name="mgAppr.clinic_type" value="1" <c:if test="${mgAppr.clinic_type == 1 }"> checked="checked"</c:if> >眼肌型(I型)
									<span style="padding-left: 30px;">
										单纯眼外肌受累，无其他肌群受累之临床表现及电生理所见，治疗预后佳。
									</span>
								</div>
								<div>
									<input type="radio" name="mgAppr.clinic_type" value="2" <c:if test="${mgAppr.clinic_type == 2 }"> checked="checked"</c:if> >轻度全身型(Ⅱ一A型)
									<span style="padding-left: 30px;">
										四肢肌群轻度受累，常伴眼肌受累，但无咀嚼、吞咽、构音困难，生活一般可以自理，治疗预后一般。
									</span>
								</div>
								<div>
									<input type="radio" name="mgAppr.clinic_type" value="3" <c:if test="${mgAppr.clinic_type == 3 }"> checked="checked"</c:if> >中度全身型(Ⅱ一B型)
									<span style="padding-left: 30px;">
										四肢肌群中度受累，常伴眼肌受累，一般出现有咀嚼、吞咽、构音困难，生活自理也有困难，治疗预后一般。
									</span>
								</div>
								<div>
									<input type="radio" name="mgAppr.clinic_type" value="4" <c:if test="${mgAppr.clinic_type == 4 }"> checked="checked"</c:if> >重度激进型(Ⅲ型)
									<span style="padding-left: 30px;">
										急性起病，进展较快，往往发病数周或数月内出现严重的吞咽、咀嚼、构音困难，常伴眼肌受累及四肢肌群受累。大多于半年内出现呼吸困难，容易发生危象，生活不能自理，多见于40岁以后发病的男性。治疗预后差。
									</span>
								</div>
								<div>
									<input type="radio" name="mgAppr.clinic_type" value="5" <c:if test="${mgAppr.clinic_type == 5 }"> checked="checked"</c:if> >迟发重症型(Ⅳ型)
									<span style="padding-left: 30px;">
										病程长，病情进展缓慢，多于两三年内逐渐由I型、Ⅱ一A、Ⅱ一B型发展到延髓麻痹和呼吸肌麻痹，容易发生危象，生活不能自理，多见于20到40岁的中青年女性。治疗预后差。
									</span>
								</div>
								<div>
									<input type="radio" name="mgAppr.clinic_type" value="6" <c:if test="${mgAppr.clinic_type == 6 }"> checked="checked"</c:if> >伴肌肉萎缩(V型)
									<span style="padding-left: 30px;">
										是指患者于起病后半年即出现肌肉萎缩，因长期肌无力而出现继发性肌萎缩者不属此型。
									</span>
								</div>
							</div>
						</div>
						<div class="pt10">
							<label>(2)病变累及肌群（可多选）</label>
							<div class="pl50">
								<input type="checkbox" name="mgAppr.muscle_eye" value="1" <c:if test="${mgAppr.muscle_eye == 1 }"> checked="checked"</c:if> >眼肌
								<input type="checkbox" name="mgAppr.muscle_face" value="1" style="padding-left: 20px;" <c:if test="${mgAppr.muscle_face == 1 }"> checked="checked"</c:if> >面肌
								<input type="checkbox" name="mgAppr.muscle_spinal" value="1" style="padding-left: 20px;" <c:if test="${mgAppr.muscle_spinal == 1 }"> checked="checked"</c:if> >延髓肌
								<input type="checkbox" name="mgAppr.muscle_neck" value="1" style="padding-left: 20px;" <c:if test="${mgAppr.muscle_neck == 1 }"> checked="checked"</c:if> >颈肌
								<input type="checkbox" name="mgAppr.muscle_breath" value="1" style="padding-left: 20px;" <c:if test="${mgAppr.muscle_breath == 1 }"> checked="checked"</c:if> >呼吸肌
								<input type="checkbox" name="mgAppr.muscle_limb" value="1" style="padding-left: 20px;" <c:if test="${mgAppr.muscle_limb == 1 }"> checked="checked"</c:if> >四肢肌
								<div>
									其他肌群：请填写<input type="text" name="mgAppr.muscle_other" size="50" value="${mgAppr.muscle_other }"/>
								</div>
							</div>
						</div>
						<div>
							<label>(3)并发症：</label>
							<div class="pl50">
								<input type="checkbox" name="mgAppr.comp_thymicHype" value="1" <c:if test="${mgAppr.comp_thymicHype == 1 }"> checked="checked"</c:if> >胸腺增生
								<input type="checkbox" name="mgAppr.comp_thymoma" value="1" style="padding-left: 20px;" <c:if test="${mgAppr.comp_thymoma == 1 }"> checked="checked"</c:if> >胸腺瘤
								<input type="checkbox" name="mgAppr.comp_thymusDegen" value="1" style="padding-left: 20px;" <c:if test="${mgAppr.comp_thymusDegen == 1 }"> checked="checked"</c:if> >胸腺退化不全
								<input type="checkbox" name="mgAppr.comp_thyroid" value="1" style="padding-left: 20px;" <c:if test="${mgAppr.comp_thyroid == 1 }"> checked="checked"</c:if> >甲状腺瘤
								<input type="checkbox" name="mgAppr.comp_thyroidFunHyper" value="1" style="padding-left: 20px;" <c:if test="${mgAppr.comp_thyroidFunHyper == 1 }"> checked="checked"</c:if> >甲状腺功能亢进
								<div>
									其他：请填写<input type="text" name="mgAppr.comp_other" size="50" value="${mgAppr.comp_other }"/>
								</div>
							</div>
						</div>
					</div>
				</div>
				<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="apprSave2()">保存</a>
			</form>
		</div>
		<div class="d-b1 pt5">
			<form name="apprForm3" action="" onsubmit="return false;" class="fs16">
				<input type="hidden" name="mgAppr.apprId" value="${mgAppr.apprId }"/>
				<input type="hidden" name="patientDoc.docId" value="${patientDoc.docId }"/>
				<div>
					<div>合并疾病调查</div>
					<div class="pl50">
						<div>患者明确合并的其他疾病，请填写：</div>
						<div>
							<!-- <a href="javascript:void(0);" onclick="delLine(this)">删除</a> -->
							<c:choose>
							<c:when test="${empty mgAppr.diseases }">
							<input type="text" name="diseases" value="${disease.cdname }">
							</c:when>
							<c:when test="${not empty mgAppr.diseases }">
							<c:forEach items="${mgAppr.diseases }" var="disease" varStatus="status">
							<c:if test="${!status.last }"><p><input type="text" name="diseases" value="${disease.cdname }"></p></c:if>
							<c:if test="${status.last }"><input type="text" name="diseases" value="${disease.cdname }"></c:if>
							</c:forEach>
							</c:when>
							</c:choose>
							<a href="javascript:void(0);" style="padding-left: 20px;" onclick="addLine(this)">增加一行</a>
						</div>
					</div>
				</div>
				<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="apprSave3()">保存</a>
			</form>
		</div>
		<div class="d-b1 pt5">
			<form name="apprForm4" action="" onsubmit="return false;" class="fs16">
				<input type="hidden" name="mgAppr.apprId" value="${mgAppr.apprId }"/>
				<input type="hidden" name="patientDoc.docId" value="${patientDoc.docId }"/>
				<div>
					<div>此次入院诱发因素</div>
					<div class="pl50">
						<input type="radio" name="mgAppr.induce" value="1" <c:if test="${mgAppr.induce == 1 }"> checked="checked"</c:if> >感冒
						<input type="radio" name="mgAppr.induce" value="2" <c:if test="${mgAppr.induce == 2 }"> checked="checked"</c:if> >肺部感染
						<input type="radio" name="mgAppr.induce" value="3" <c:if test="${mgAppr.induce == 3 }"> checked="checked"</c:if> >腹泻
						<input type="radio" name="mgAppr.induce" value="4" <c:if test="${mgAppr.induce == 4 }"> checked="checked"</c:if> >月经来潮
						<input type="radio" name="mgAppr.induce" value="5" <c:if test="${mgAppr.induce == 5 }"> checked="checked"</c:if> >疲劳
						<input type="radio" name="mgAppr.induce" value="6" <c:if test="${mgAppr.induce == 6 }"> checked="checked"</c:if> >天气变化
						<input type="radio" name="mgAppr.induce" value="7" <c:if test="${mgAppr.induce == 7 }"> checked="checked"</c:if> >怀孕
						<input type="radio" name="mgAppr.induce" value="8" <c:if test="${mgAppr.induce == 8 }"> checked="checked"</c:if> >产后
						<input type="radio" name="mgAppr.induce" value="9" <c:if test="${mgAppr.induce == 9 }"> checked="checked"</c:if> >术后
					</div>
				</div>
				<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="apprFave4()">保存</a>
			</form>
		</div>
	</div>
	<script type="text/javascript">
	
		$(function() {
			//起病时间
			$('input[name="mgAppr.qibing_day"]').datebox();
			//确诊时间
			$('input[name="mgAppr.quezhen_day"]').datebox();
		});
	
		function apprSave1() {
			$(apprForm1).form('submit',{
				url: __MANAGER+'myastheniaDoc_apprSave1.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		function apprSave2() {
			$(apprForm2).form('submit',{
				url: __MANAGER+'myastheniaDoc_apprSave2.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		function apprSave3() {
			$(apprForm3).form('submit',{
				url: __MANAGER+'myastheniaDoc_apprSave3.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		function apprSave4() {
			$(apprForm4).form('submit',{
				url: __MANAGER+'myastheniaDoc_apprSave4.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		function addLine(t) {
			$(t).prevAll().wrap('<p></p>');
			$(t).before('<input type="text" name="diseases" value="">');
		}
	</script>
</body>
</html>
